﻿using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class FtCbls
    {
        public void Read(BinaryReader reader)
        {
            ushort ft = reader.ReadUInt16();
            ushort cb = reader.ReadUInt16();
            Contract.Assert(ft == 0x000A);
            Contract.Assert(cb == 0x000C);
            reader.ReadBytes(12);
        }

        public void Write(BinaryWriter writer)
        {
            ushort ft = 0x000A;
            writer.Write(ft);
            ushort cb = 0x000C;
            writer.Write(cb);
            writer.Write(new byte[12]);
        }
    }
}